import request from './request';
export function getRechargegoods(data) {
    return request('/operations/rechargegoods/getRechargeList', 'get', data);
}
export function rechargegoodsadd(data) {
    return request('/operations/rechargeorder/add', 'post', data);
}
export function payOrder(data) {
    return request('/operations/rechargeorder/payOrderOnMiniApp', 'post', data);
}
export function rechargeorder(data) {
    return request('/operations/rechargeorder', 'get', data);
}
export function myOrders(data) {
    return request('/operations/rechargeorder/myOrders', 'get', data);
}
export function cancelOrder(data) {
    return request('/operations/rechargeorder/cancelOrder', 'get', data);
}

// export function cancelOrder(data) {
//   return request('/driver/cduser/updatePospalPassword', 'get',data)
// }

//发送验证码  phone:'',type: '4'
export function getCode(data) {
    return request('/driver/smsLog/sendSmsV2', 'post', data);
}

//验证验证码 code:''
export function verifyCode(data) {
    return request('/driver/cduser/verifyCode', 'get', data);
}
export function updatePospalPassword(data) {
    return request('/driver/cduser/updatePospalPassword', 'get', data);
}
